package org.larkdoc.service.impl;

import java.util.List;

import org.larkdoc.dao.RoleInfoMapper;
import org.larkdoc.model.entity.RoleInfo;
import org.larkdoc.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 角色信息业务功能实现类
 * 
 * @author  zhangpeijun[zhangpeijun1024@qq.com]
 * @version  [v1.0.1, 2017年10月17日]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {
    
    @Autowired
    RoleInfoMapper roleInfoMapper;
    
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return roleInfoMapper.deleteByPrimaryKey(id);
    }
    
    @Override
    public int insert(RoleInfo record) {
        return roleInfoMapper.insert(record);
    }
    
    @Override
    public int insertSelective(RoleInfo record) {
        return roleInfoMapper.insertSelective(record);
    }
    
    @Override
    public RoleInfo selectByPrimaryKey(Integer id) {
        return roleInfoMapper.selectByPrimaryKey(id);
    }
    
    @Override
    public int updateByPrimaryKeySelective(RoleInfo record) {
        return roleInfoMapper.updateByPrimaryKeySelective(record);
    }
    
    @Override
    public int updateByPrimaryKey(RoleInfo record) {
        return roleInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<RoleInfo> selectByUserAccount(String account) {
        return roleInfoMapper.selectByUserAccount(account);
    }
    
}
